﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<B10.Models.UserPage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edytuj treść strony
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">

    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>

    <script src="../../Scripts/ckeditor.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ui-corner-all ui-helper-clearfix alternate-header" id="tabs">
        <div class="ui-widget-header-title">
            Edytuj treść strony
        </div>
    </div>
    <div id="createMain" class="content-wrapper center ui-widget-content ui-corner-all">
        <% using (Html.BeginForm())
           {%>
        <%--<div>
            <% Html.RenderPartial("Navigation", new { PreviousUrl = "/Page/Edit/" + Model.Id, NextUrl = "", Step = Strings.Step2Of3 }); %>
        </div>--%>
        <textarea id="Content" name="Content" class="editor-area" cols="80" rows="8">
        <%=Model.Content %>
        </textarea>
        <div>
            <% Html.RenderPartial("Navigation", new { PreviousUrl = "/Page/Edit/" + Model.Id, NextUrl = "", Step = "" }); %>
        </div>

        <script type="text/javascript">
            //<![CDATA[
            // Replace the <textarea id="Content"> with an CKEditor instance.
            var editor = CKEDITOR.replace('Content',
				{
				    height: 500,
				    width: '98%',
				    filebrowserImageUploadUrl: '/Upload/Image/<%=Model.Id %>',
				    language: 'pl',
				    //resize_maxWidth: '98%',
				    resize_enabled: false,
				    enterMode: CKEDITOR.ENTER_BR,
				    toolbar:
				    [
				    ['Source', 'Undo', 'Redo'],
                    ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList'],
                    ['Outdent', 'Indent', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
                    ['Link', 'Unlink'],
                    '/',
                    ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak'],
                    ['Styles', 'Format', 'Font', 'FontSize']
				    ]
				});
            //]]>
        </script>

        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="LeftColumnContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="RightColumnContent" runat="server">
</asp:Content>
